package com.mr3chi.horoscopes;

import java.util.Calendar;
import android.annotation.SuppressLint;
import android.app.DatePickerDialog;
import android.app.DatePickerDialog.OnDateSetListener;
import android.app.Dialog;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;

@SuppressLint("ValidFragment")
public class DialogDatePicker extends DialogFragment{
	private OnDateSetListener mDateSetListener;
	 
	public DialogDatePicker() {
	}
 
	public DialogDatePicker(OnDateSetListener callback) {
		mDateSetListener = (OnDateSetListener) callback;
	}
 
	public Dialog onCreateDialog(Bundle savedInstanceState) {
		Calendar cal = Calendar.getInstance();
 
		return new DatePickerDialog(getActivity(),
				mDateSetListener, cal.get(Calendar.YEAR), 
				cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH));
	}
	
	
}
